<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .main {
            width: 600px;
            height: 200px;
            margin: 0 auto;
        }
        
        a {
            display: inline-block;
            width: 600px;
            height: 200px;
        }
        
        img {
            width: 270px;
            height: 140px;
        }
    </style>
</head>

<body>
    <div class="main">
        <a href="https://www.baidu.com">
            <img src="img/dongtu.gif">
        </a>
    </div>
</body>

</html>